Custom Sp Entry
data class CustomSpEntry(val uiModeType: UiModeType? = null, val dpQualifierEntry: DpQualifierEntry? = null, val orientation: Orientation = Orientation.DEFAULT, val customValue: Number, val finalQualifierResolver: DpQualifier? = null, val priority: Int, val inverter: Inverter = Inverter.DEFAULT, val fontScale: Boolean = true)
EN Represents a custom Sp entry with qualifiers and priority, for the Compose Sp builder.
PT Representa uma entrada de Sp customizada com qualificadores e prioridade, para o builder Sp do Compose.
Parameters
ui Mode Type
The UI mode (CAR, TELEVISION, WATCH, NORMAL). Null for any mode.
dp Qualifier Entry
The Dp qualifier entry (type and value). Null if only UI mode is used.
orientation
The screen orientation (LANDSCAPE, PORTRAIT, DEFAULT).
custom Value
The base Int Sp value to be used if the condition is met.
final Qualifier Resolver
Optional override for the scaling qualifier at resolution time.
priority
The resolution priority. 1 is most specific (UI + Qualifier), 4 is least specific.
inverter
The inverter type to adapt scaling on rotation changes.
font Scale
Whether to respect the system font scale (default true).
Constructors
Link copied to clipboard
constructor(uiModeType: UiModeType? = null, dpQualifierEntry: DpQualifierEntry? = null, orientation: Orientation = Orientation.DEFAULT, customValue: Number, finalQualifierResolver: DpQualifier? = null, priority: Int, inverter: Inverter = Inverter.DEFAULT, fontScale: Boolean = true)